package Negocio;



import static org.junit.Assert.assertEquals;

import java.util.LinkedList;
import java.util.List;

import org.junit.Test;


public class DisciplinaTeste {
	Disciplina disciplina;
	Professor prof1,prof2,prof3;
	List<Professor> professores;
	@Test
	public void TestCadDisciplina(){

		prof1=new Professor();
		prof1.setNome("Ayla");
		prof1.setMatricula("12345");

		prof2=new Professor();
		prof2.setNome("Jessyca");
		prof2.setMatricula("0000");

		prof3=new Professor();
		prof3.setNome("Rodrigo");
		prof3.setMatricula("1111");

		professores=new LinkedList<Professor>();

		professores.add(prof1);
		professores.add(prof2);
		professores.add(prof3);


		disciplina=new Disciplina("ESA","001",professores);
		assertEquals("ESA"    ,disciplina.getNome  ());
		assertEquals("001"    ,disciplina.getCodigo());
		assertEquals("Ayla"   ,disciplina.getProfessor().get(0).getNome     ());
		assertEquals("12345"  ,disciplina.getProfessor().get(0).getMatricula());
		assertEquals("Jessyca",disciplina.getProfessor().get(1).getNome     ());
		assertEquals("0000"   ,disciplina.getProfessor().get(1).getMatricula());
		assertEquals("Rodrigo",disciplina.getProfessor().get(2).getNome     ());
		assertEquals("1111"   ,disciplina.getProfessor().get(2).getMatricula());



	}


}

